import request from "@/utils/request";

const appManagePageApi = {
    /**
     * 获取app版本号
     */
    getApps(data:IGetApp){
      return request({
        url: `api/Developer/AppVersion/GetApps`,
        method: "post",
        data,
      })
    },
    // , 
    /**
     * 删除app数据
     * @param id 
     * @returns 
     */
    deleteApp(id:number){
      return request({
        url: ` api/Developer/AppVersion/DeleteApp`,
        method: "get",
        params:id,
      })
    },
   setAppActived(id:number){
    return request({
      url: ` /api/Developer/AppVersion/SetAppActived`,
      method: "get",
      params:id,
    })
   }
}

export default appManagePageApi

/**获取app的data参数 */
export interface IGetApp{
  code ?:string,
  pageIndex : number,
  pageSize : number
}